<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			body{
				height: 10000px;
			}
			#d{
				height: 100px;
				height: 200px;
				border: red solid 10px;
			}
			#f{
				margin: 100px 500px;
			}
			input[value="搜索"]{
				background-color: orangered;
				color: white;
				margin: 0px -5px;
				border: orangered 1px solid;
			}
			img{
				margin: 0px 90px;
			}
		</style>
		<script type="text/javascript">
		function hd(){
				var x=window.pageYOffset
				var d=document.getElementById("f")
				if(x>250){
					d.style.position="fixed"
					d.style.margin="0px 500px"
				}else{
					d.style.position="static"
					d.style.margin="100px 500px"
				}
				setTimeout("hd()", 1);
			}
		</script>
	</head>
	<body onload="hd()">
		<div id="d">
			<form action="https://s.taobao.com/search" target="_blank" id="f">
				<img src="img/taobao_shopping-446.png" >
				<input name="q" size="30">
				<input type="submit" value="搜索">
			</form>
		</div>
	</body>
</html>
